package com.swufe.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;

public class WelcomActivity extends AppCompatActivity {

    private static final String TAG = "welcom";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcom);
        Log.i(TAG, "onCreate: 2022/5.20");
        boolean handler = new Handler().postDelayed(r, 1000);// 1秒后关闭，并跳转到主页面
    }
    Runnable r = new Runnable() {
        @Override
        public void run() {
            // TODO Auto-generated method stub
            Intent intent = new Intent();
            intent.setClass(WelcomActivity.this, LoginActivity.class);
            startActivity(intent);
            finish();
            Log.i(TAG, "run: 进入游戏");
        }
    };
}